<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="toptb" class="cl">
    <div class="wp">
        <div class="z"><a href="javascript:;"  onclick="setHomepage('#');">设为首页</a><a href="#"  onclick="addFavorite(this.href, '思爱婚介');return false;">收藏本站</a></div>
        <div class="y">
            <a id="switchblind" href="javascript:;" onClick="toggleBlind(this)" title="开启辅助访问" class="switchblind">开启辅助访问</a>
        </div>
    </div>
</div>

<div id="qmenu_menu" class="p_pop blk" style="display: none;">
    <div class="ptm pbw hm">
        请 <a href="javascript:;" class="xi2" onclick="lsSubmit()"><strong>登录</strong></a> 后使用快捷导航<br />没有帐号？<a href="member.php?mod=register888" class="xi2 xw1">立即注册</a>
    </div>
    <div id="fjump_menu" class="btda"></div></div><div id="hd">
    <div class="wp">
        <div class="hdc cl"><h2><a href="index.php" title="思爱婚介"><img src="../../public/home/images/logo.png" alt="思爱婚介" border="0" /></a>
            </h2><script src="js/logging.js" type="text/javascript"></script>
            <?php
            require 'config.php';
            @$id = $_COOKIE['id1'];
            @$sql = "select * from userdetail where uid = $id ";
            @$result = mysqli_query($link,$sql);
            @$rows = mysqli_fetch_assoc($result);
            @$photo = $rows['photo'];
            @$fh='x_';
            @$hz=basename($photo);
            @$logo1 = './images/'.$hz;
            @$logo ='../upuser/images/'.$fh.$hz;
            @$sql1 = "select * from jifen where uid = $id";
            @$result1 = mysqli_query($link,$sql1);
            @$rows1 = mysqli_fetch_assoc($result1);
            @$jien = $rows1['integral'];
            @$group = $rows1['group'];
            if ($jien <= 100){
                $group = '黑铁';
            }elseif ($jien <= 200 && $jien>100){
                $group = '白银';
            }elseif ($group <= 300 && $jien>200){
                $group = '黄金';
            }elseif ($group <= 400 && $jien>300){
                $group = '白金';
            }elseif ($group <= 500 && $jien>400){
                $group = '钻石';
            }elseif ($group>500){
                $group = '王者';
            }
            ?>


            <?php
            @$auth = $_COOKIE['uname1'];
            @$auth1 = $_COOKIE['auth1'];
            if(empty($auth)){
                echo '<form method="post" autocomplete="off" id="lsform" action="contro.php?a=login">
                <div class="fastlg cl">
                    <span id="return_ls" style="display:none"></span>
                    <div class="y pns">
                      <table cellspacing="0" cellpadding="0">
                            <tr>

                                <td>用户名:<input type="text" name="uname" id="ls_username" autocomplete="off" class="px vm" tabindex="901" /></td>
                                <td class="fastlg_l"><label for="ls_cookietime"><input type="checkbox" name="ji" value="1"/>记住密码</label></td>
                                <td>&nbsp;<a href="./mima.php">找回密码</a></td>
                            </tr>
                            <tr>
                                <td>密　码:<input type="password" name="pwd" id="ls_username" autocomplete="off" class="px vm" tabindex="901" /></td>
                                <td class="fastlg_l"><input type="submit" class="pn vm" tabindex="904" value="登录" style="width: 75px;"></input></td>
                                <td>&nbsp;<a href="../register/register.php" class="xi2 xw1">立即注册</a></td>
                            </tr>
                        </table>
                        <input type="hidden" name="quickforward" value="yes" />
                        <input type="hidden" name="handlekey" value="ls" />
                    </div>
                </div>
            </form>';
            }else{
                if ($auth1 =='普通用户'){
                    echo "
                <div id=\"um\" style='float: right;'>
                <p style='float: left'>
                <img style='height: 50px;' src=\"{$logo}\"></p>
                <div style='float: right; margin-left: 10px;'>
                <strong><a href=\"../upuser/update.php\">{$auth}</a></strong>
                <span class=\"pipe\">|</span><a href=\"../upuser/update.php\">完善资料</a>
                <span class=\"pipe\">|</span><a href=\"\">签到</a>
                <span class=\"pipe\">|</span><a href='../vip.php'>
                    充值会员
                </a>
                <script language=\"javascript\">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script><span class=\"pipe\">|</span>
       
                <span class=\"pipe\">|</span><a href=\"contro.php?a=exit\">退出</a>
                   <p>
<a href=\"\" id=\"extcreditmenu\"  class=\"showmenu\" initialized=\"true\">积分: $jien</a>
<span class=\"pipe\">|</span><a href=\"\" id=\"g_upmine\" class=\"showmenu\">用户组: $group</a>
</p>
                </div>
                
                </div>";
                }else{
                    echo "
                <div id=\"um\" style='float: right;'>
                <p style='float: left'>
                <img style='height: 50px;' src=\"{$logo}\"></p>
                <div style='float: right; margin-left: 10px;'>
                <strong><a href=\"../upuser/update.php\"  style='color:red;'>{$auth}</a></strong>
                <span class=\"pipe\">|</span><a href=\"../upuser/update.php\">完善资料</a>
                <span class=\"pipe\">|</span><a href=\"\">签到</a>
                <span class=\"pipe\">|</span><a href='../vip.php'>
                    充值会员
                </a>
                <script language=\"javascript\">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script><span class=\"pipe\">|</span>
             
                <span class=\"pipe\">|</span><a href=\"contro.php?a=exit\">退出</a>
                   <p>
<a href=\"\" id=\"extcreditmenu\"  class=\"showmenu\" initialized=\"true\">积分: $jien</a>
<span class=\"pipe\">|</span><a href=\"\" id=\"g_upmine\" class=\"showmenu\">用户组: $group</a>
</p>
                </div>
                
                </div>";
                }

            }
            ?>

            <script src="js/md5.js" type="text/javascript" reload="1"></script>
        </div>
        <div id="nv">
            <a href="javascript:;" id="qmenu" onMouseOver="delayShow(this, function () {showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});showForummenu();})">快捷导航</a>
            <ul><li class="a" id="mn_forum" ><a href="../index.php" hidefocus="true" title="BBS"   >论坛首页<span>BBS</span></a>
                <li id="mn_F478" ><a href="#" hidefocus="true"  >两性课堂</a></li>
                <li id="mn_F477" ><a href="#" hidefocus="true"  >网上征婚指南</a></li>
                <li id="mn_F476" ><a href="#" hidefocus="true"  >成功案例</a></li>
                <li id="mn_F482" ><a href="#" hidefocus="true"  >专家咨询</a></li></ul>
        </div>
        <div id="mu" class="cl">
        </div><div id="scbar" class="cl">
            <form id="scbar_form" method="post" action="../search/search.php?a=sea" >
                <input type="hidden" name="id" id="scbar_mod" value="" />
                <table cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="scbar_icon_td"></td>
                        <td class="scbar_txt_td"><input type="text" name="sear" id="scbar_txt" placeholder="请输入搜索内容" /></td>
                        <td style="padding-left: 10px"><select name="select">
                                <option value="1">帖子</option>
                                <option value="3">用户</option>
                                <option value="4">板块</option>
                            </select></td>
                        <td ><input style="
         background: #5e5e5e; width: 50px;
            height: 30px; margin-bottom: 8px; margin-left: 10px;
        " type="submit" name="" id="scbar_btn" class="pn pnc" value="搜索" ></td>
                        <td class="scbar_hot_td">
                        </td>
                    </tr>
                </table>
            </form>
        </div>